package com.itheima.demo2;

public class Demo2 {
    public static void main(String[] args) {
        //lambda
        method(()->{
            System.out.println("铁汁,我们去游泳吧");
        });
    }

    public static  void  method(Swim swim){
        swim.swimming();
    }
}

interface  Swim{
    void swimming();
}
